#include "mrmusic.h"

#include <QApplication>
#include <QSharedMemory>
#include <QMessageBox>
#include <QIcon>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QSharedMemory sharedMemory("MrMusic");

    if(sharedMemory.attach())
    {
        QMessageBox::information(nullptr, "MrMusic", "MrMusic已经在运行...");
        return 0;
    }

    sharedMemory.create(1);

    mrMusic w;
    w.show();
    return a.exec();
}
